package com.flower8.service;

import com.flower8.model.ActiveGoods;
import com.flower8.utils.PageData;

import java.util.List;
import java.util.Map;

/**
 * @Description: 大转盘奖品
 * @Author: tanglin
 * @Date: 2020/3/9 18:12
 * @Version: 1.0
 */
public interface GoodsService {
    /**
     * 查询大转盘奖品列表
     * @param pd
     * @return
     * @throws Exception
     */
    List<Map> getGoodsList(PageData pd) throws Exception ;

    /**
     * 查询大转盘奖品列表
     * @param pd
     * @return
     * @throws Exception
     */
    int getGoodsCount(PageData pd) throws Exception ;

    /**
     * 根据大转盘奖品ID查询
     * @param id
     * @return
     * @throws Exception
     */
    Map getGoodsById(long id) throws Exception;

    /**
     * 更新大转盘奖品
     * @param goods
     * @throws Exception
     */
    void updateGoods(ActiveGoods goods)throws Exception;
}
